<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
  <title>简历管理</title>
</head>

<body>
  <c:if test="${not empty message}">
    <div id="message" class="alert alert-success"><button data-dismiss="alert" class="close">×</button>${message}</div>
  </c:if>

  <table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead><tr><th>简历名称</th><th>简历语言</th><th>创建时间</th><th>更新时间</th><th>完整程度</th><th>管理</th></tr></thead>
    <tbody>
    <c:forEach items="${cvs.content}" var="cv">
      <tr>
        <td><a href="${ctx}/member/cv/${cv.id}/update/0">${cv.name}</a></td>
        <td>
        <c:forEach items="${cv.cvLang}" var="cvLang">
          <a href="${ctx}/member/cv/${cv.id}/update/${cvLang.lang}">${cvLang.name}</a><br>
        </c:forEach>
        </td>
        <td></td>
        <td></td>
        <td></td>
        <td><a href="${ctx}/member/cv/delete/${cv.id}">删除</a>&nbsp;&nbsp;
      </tr>
    </c:forEach>
    </tbody>
  </table>
  
  <div><a class="btn" href="${ctx}/member/cv/create/0">创建简历</a></div>
</body>
</html>
